package com.glink.manage.common.enums;

/**
 * Created by IntelliJ IDEA.
 *
 * @Author : qiushaoshan
 * @create 2025/1/21 16:43
 */
public class TaskEnum {

    public enum SignalAction {
        START_TASK("1", "任务启动"),
        LOAD_START_UP("-1", "开机启动加载未执行完成的任务");
        private String code;
        private String name;

        SignalAction(String code, String name) {
            this.code = code;
            this.name = name;
        }

        public String getCode() {
            return this.code;
        }

        public String getName() {
            return this.name;
        }

        public String getType() {
            return "SignalAction";
        }

        public String getNameByCode(String code) {
            for (SignalAction value : values()) {
                if (value.code.equals(code)) {
                    return value.name;
                }
            }
            return "";
        }
    }
}
